<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div {
             width: 200px;
             height: 200px;
             background-color: red;
             animation: myAnai 3s linear 0s infinite ;
        }  

        div:hover{
            background-color: orange;
            animation-play-state: paused;

        }

        @keyframes myAnai {
            from 0% {
                width: 200px;
                background-color: red;
            }

            25%{
                width: 300px;
                background-color: green;
            }

            50% {
                width: 400px;
                background-color: blue;
            }

            75%{
                width: 300px;
                background-color: black;
            }

            100% {
                width: 200px;
                background-color: red;
            }
        }

        p{
            ri: 100px;
        }
    </style>
</head>

<body>
    <div>
        <p>op赵靖宇</p>
    </div>
</body>

</html>